-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New resource and data source: azurerm_automation_variable_object
#22644
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: catriona-m <[email protected]>
Hi @catriona-m. I'd love to handle the serialisation within the CRUD functions, but I can't see how to achieve this. When I look at the schema type definitions, I can only use standard Go types, which therefore has all the limitations that come with them. The closest option is to use a value = {
name = "Name"
boolean = true
num = 3
object = {
name = "Arthur Dent"
number = 42
}
} as this causes a panic as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @oWretch LGTM!
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Add support for object-type variables for Automation Accounts. They cannot be created in the Azure Portal, only via API. They can be viewed in the Azure Portal.
Created as a non-typed resource to match the current variable resource types, and continue to share the parsing code. Also using
resource_group_name
andautomation_account_name
instead ofautomation_account_id
to match with the current variable resources.